export CC:=gcc
export AR:=ar

INC = -I.
INC += -I../inc
INC += -I/mnt/hgfs/Work/onvif/rc/openssl-1.0.1e/include
COMMONLIB_PATH = /mnt/hgfs/Work/onvif/rc/openssl-1.0.1e
ADDRLIB = /usr/local/lib

CFLAGS += -w -O2 $(INC)  -DWITH_DOM  -DWITH_OPENSSL -DONVIF_LIB -L$(COMMONLIB_PATH)

SRCS    := $(wildcard *.c)
OBJS	:= $(SRCS:%.c=%.o)

TARGET=libonvif_soap.a

$(TARGET):$(OBJS)
	@${AR} -rsv $@ $^ 
	cp -f $(TARGET) ../lib
.c.o:
	${CC} ${CFLAGS} -c $<

clean:
	rm -f *.o *.a ${OBJECT}
	
	